package com.android.fragmentdemo.defineviews

import android.content.Context
import android.util.AttributeSet
import android.view.MotionEvent
import androidx.recyclerview.widget.RecyclerView

class ForbidScrollRecyclerView @JvmOverloads constructor(
    context: Context,
    attributeSet: AttributeSet? = null
) : RecyclerView(context, attributeSet) {

    override fun dispatchTouchEvent(ev: MotionEvent?): Boolean {
        return true
    }

//    override fun onInterceptTouchEvent(e: MotionEvent?): Boolean {
//        return true
//    }
//
//    override fun onTouchEvent(e: MotionEvent?): Boolean {
//        performClick()
//        return true
//    }
//
//    override fun performClick(): Boolean {
//        return super.performClick()
//    }
}